package com.coincalf.wallet.service;

import com.coincalf.wallet.entity.AddressPool;
import com.baomidou.mybatisplus.service.IService;
import com.coincalf.wallet.feign.dto.AddressPoolDTO;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 用户的地址池 服务类
 * </p>
 *
 * @author crow
 * @since 2018-05-16
 */
public interface AddressPoolService extends IService<AddressPool> {

    /**
     * 根据币种ID获取钱包地址
     *
     * @param coinId 币种ID
     * @return
     */
    AddressPool selectAddress(Long coinId);

    /**
     * 根据币种名称新增一定数量(amount)个地址
     *
     * @param coinName
     * @param amount
     * @return
     */
    int addAddress(String coinName, Integer amount);
}
